package com.john.design.创建性模型.抽象工厂;

/**
 * @Author: JohnCoding
 * @Description:
 * @date: 2020/8/10 22:46
 */
public class Test {
    public static void main(String[] args) {
        CourseFactory courseFactory = new JavaCourseFactory();
        Mark mark = courseFactory.buildMark();
        Video video = courseFactory.buildVideo();
        mark.produce();
        video.produce();

        CourseFactory pythodCourseFactory = new PythodCourseFactory();
        Mark pyMark = pythodCourseFactory.buildMark();
        Video pyVideo = pythodCourseFactory.buildVideo();
        pyMark.produce();
        pyVideo.produce();
    }
}
